package org.jeecg.modules.qyxx.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.github.jeffreyning.mybatisplus.service.MppServiceImpl;
import org.jeecg.modules.qyxx.entity.TycLsgsxxZcdzlb;
import org.jeecg.modules.qyxx.mapper.TycLsgsxxZcdzlbMapper;
import org.jeecg.modules.qyxx.service.ITycLsgsxxZcdzlbService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 历史工商信息_注册地址
 * @Author: jeecg-boot
 * @Date: 2022-02-18
 * @Version: V1.0
 */
@Service
//@DS("fk_oracle")
public class TycLsgsxxZcdzlbServiceImpl extends MppServiceImpl<TycLsgsxxZcdzlbMapper, TycLsgsxxZcdzlb> implements ITycLsgsxxZcdzlbService {

    @Override
    public List<TycLsgsxxZcdzlb> listByShxydm(String djxh) {
        LambdaQueryWrapper<TycLsgsxxZcdzlb> wrapper = Wrappers.lambdaQuery(TycLsgsxxZcdzlb.class);
        wrapper.eq(TycLsgsxxZcdzlb::getShxydm, djxh);
        return list(wrapper);
    }

    @Override
    public List<TycLsgsxxZcdzlb> listByShxydmAndTjnd(String djxh, String tjnd) {
        LambdaQueryWrapper<TycLsgsxxZcdzlb> wrapper = Wrappers.lambdaQuery(TycLsgsxxZcdzlb.class);
        wrapper.eq(TycLsgsxxZcdzlb::getShxydm, djxh)
                .likeRight(TycLsgsxxZcdzlb::getTime, tjnd);
        return list(wrapper);
    }
}
